type reflect.flag
70 uses
reflect (current package)
makefunc.go#L70: return Value{t, unsafe.Pointer(impl), flag(Func)}
makefunc.go#L103: fl |= flag(v.typ().Kind())
makefunc.go#L129: return Value{ftyp.Common(), unsafe.Pointer(fv), v.flag&flagRO | flag(Func)}
type.go#L596: fl := flag(Func)
value.go#L62: flag
value.go#L71: type flag uintptr
value.go#L75: flagKindMask flag = 1<<flagKindWidth - 1
value.go#L76: flagStickyRO flag = 1 << 5
value.go#L77: flagEmbedRO flag = 1 << 6
value.go#L78: flagIndir flag = 1 << 7
value.go#L79: flagAddr flag = 1 << 8
value.go#L80: flagMethod flag = 1 << 9
value.go#L82: flagRO flag = flagStickyRO | flagEmbedRO
value.go#L85: func (f flag) kind() Kind {
value.go#L89: func (f flag) ro() flag {
value.go#L163: f := flag(t.Kind())
value.go#L230: func (f flag) mustBe(expected Kind) {
value.go#L239: func (f flag) mustBeExported() {
value.go#L245: func (f flag) mustBeExportedSlow() {
value.go#L257: func (f flag) mustBeAssignable() {
value.go#L263: func (f flag) mustBeAssignableSlow() {
value.go#L288: return Value{ptrTo(v.typ()), v.ptr, fl | flag(Pointer)}
value.go#L632: fl := flagIndir | flag(tv.Kind())
value.go#L649: ret[i] = Value{tv, regArgs.Ptrs[steps[0].ireg], flag(tv.Kind())}
value.go#L680: ret[i] = Value{tv, s, flagIndir | flag(tv.Kind())}
value.go#L729: v := Value{typ, nil, flag(typ.Kind())}
value.go#L1268: fl |= flag(typ.Kind())
value.go#L1288: fl := v.flag&(flagStickyRO|flagIndir|flagAddr) | flag(typ.Kind())
value.go#L1416: fl := v.flag&(flagIndir|flagAddr) | v.flag.ro() | flag(typ.Kind()) // bits same as overall array
value.go#L1429: fl := flagAddr | flagIndir | v.flag.ro() | flag(typ.Kind())
value.go#L1438: fl := v.flag.ro() | flag(Uint8) | flagIndir
value.go#L1770: fl |= flag(typ.Kind())
value.go#L1783: fl := v.flag.ro() | flag(keyType.Kind())
value.go#L1853: return copyVal(ktype, iter.m.flag.ro()|flag(ktype.Kind()), iterkey)
value.go#L1879: key := Value{ktype, iterkey, iter.m.flag | flag(ktype.Kind()) | flagIndir}
value.go#L1896: return copyVal(vtype, iter.m.flag.ro()|flag(vtype.Kind()), iterelem)
value.go#L1922: elem := Value{vtype, iterelem, iter.m.flag | flag(vtype.Kind()) | flagIndir}
value.go#L1988: func (f flag) panicNotMap() {
value.go#L1994: func copyVal(typ *abi.Type, fl flag, ptr unsafe.Pointer) Value {
value.go#L2020: fl |= flag(Func)
value.go#L2021: fl |= flag(i)<<flagMethodShift | flagMethod
value.go#L2206: val = Value{t, nil, flag(t.Kind())}
value.go#L2524: fl := v.flag.ro() | flagIndir | flag(Slice)
value.go#L2576: fl := v.flag.ro() | flagIndir | flag(Slice)
value.go#L2851: v.flag = flagIndir | flag(Slice) // equivalent flag to MakeSlice
value.go#L3109: fl := flag(t.Kind())
value.go#L3148: return Value{&typ.(*rtype).t, unsafe.Pointer(&s), flagIndir | flag(Slice)}
value.go#L3164: return Value{t, ch, flag(Chan)}
value.go#L3180: return Value{t, m, flag(Map)}
value.go#L3225: fl := flag(t.Kind())
value.go#L3257: fl := flag(Pointer)
value.go#L3264: fl := flag(Pointer)
value.go#L3284: fl |= flag(dst.Kind())
value.go#L3292: return Value{dst, nil, flag(Interface)}
value.go#L3303: return Value{dst, target, flagIndir | flag(Interface)}
value.go#L3559: func makeInt(f flag, bits uint64, t Type) Value {
value.go#L3572: return Value{typ, ptr, f | flagIndir | flag(typ.Kind())}
value.go#L3577: func makeFloat(f flag, v float64, t Type) Value {
value.go#L3586: return Value{typ, ptr, f | flagIndir | flag(typ.Kind())}
value.go#L3590: func makeFloat32(f flag, v float32, t Type) Value {
value.go#L3594: return Value{typ, ptr, f | flagIndir | flag(typ.Kind())}
value.go#L3599: func makeComplex(f flag, v complex128, t Type) Value {
value.go#L3608: return Value{typ, ptr, f | flagIndir | flag(typ.Kind())}
value.go#L3611: func makeString(f flag, v string, t Type) Value {
value.go#L3618: func makeBytes(f flag, v []byte, t Type) Value {
value.go#L3625: func makeRunes(f flag, v []rune, t Type) Value {
value.go#L3728: return Value{t.common(), h.Data, v.flag&^(flagIndir|flagAddr|flagKindMask) | flag(Pointer)}
value.go#L3744: return Value{typ, ptr, v.flag&^(flagAddr|flagKindMask) | flag(Array)}
value.go#L3771: return Value{typ.common(), target, v.flag.ro() | flagIndir | flag(Interface)}
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |